<template>
  <div id="app">
    <!-- 路由出口 -->
    <login />
    <router-view/>
  </div>
</template>

<script>
import login from './views/login/index.vue'
export default {
  name: 'App',
  components: { login },
  data () {
    return {}
  },
  methods: {},
  created() {
    if (this.$router.path !== "/login")
      this.$router.replace("login")
  }
}
</script>

<style lang="less"></style>
